Hledáme učitelku / učitele do první třídy.
"; echo "$dataRow->short_text
"; } else { echo "Nejbližší událost
"; echo "Konec školního roku
"; } ?>

Fotogalerie
if($mpID->id) { // dibi::test ("select id, article_date, title, short_text from article where site_id=%i and label & %i order by article_date desc", $mpID->id, 1); $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc limit 6", $mpID->id, 8, 1, 0); if(count($dataRes)>0) { foreach($dataRes as $dataRow) { $url="/site-photo/".str_pad($dataRow->id, 4, "0", STR_PAD_LEFT); $Fid=str_pad($dataRow->id, 4, "0", STR_PAD_LEFT); echo "title\">

"; } else echo "V této sekci není žádná fotogalerie."; } else echo "V této sekci není žádná fotogalerie."; ?>
$hrefTitle
"; if($mpID->id) { // dibi::test ("select id, article_date, title, short_text from article where site_id=%i and label & %i order by article_date desc limit 5", $mpID->id, 1); $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc limit 3", $mpID->id, 1, 1, 0); if(count($dataRes)>0) { foreach($dataRes as $dataRow) { echo "
".date("j.n.Y", strtotime($dataRow->article_date))."
id\">$dataRow->title
$dataRow->short_text
"; } else echo "V této sekci není žádný článek."; } else echo "V této sekci není žádný článek."; ?>


\n"; echo "
$dataRow->title
\n"; if($dataRow->short_text) echo "$dataRow->short_text
\n"; if($dataRow->text) echo "$dataRow->text
\n"; } else echo "Požadovaná fotogalerie neexistuje."; $pg=$dataRow->id; } else { if($mpID->id) { // dibi::test ("select id, article_date, title, short_text from article where site_id=%i and label & %i order by article_date desc", $mpID->id, 1); $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 8, 1, 0); if(count($dataRes)>0) { foreach($dataRes as $dataRow) { $url="/site-photo/".str_pad($dataRow->id, 4, "0", STR_PAD_LEFT); $Fid=str_pad($dataRow->id, 4, "0", STR_PAD_LEFT); echo "title\">
$dataRow->title
$dataRow->short_text
$dataRow->text
\n"; // vypis dokumentu $documentsPath="ke-stazeni/clanky/$mpID->id/$dataRow->id"; if(is_dir($documentsPath)) { $aFile=iterator_to_array(NFinder::findFiles('*')->in($documentsPath)); if(count($aFile)>0) { echo ""; ksort($aFile); foreach ($aFile as $file) { // echo $file."
"; $url=str_replace("\\","/",$file); $name=substr($file,strrpos($file,"/")+1); $name=str_replace("-"," ",$name); $ext=substr($file,strrpos($file,".")+1); echo "

$name\n"; } } } } else echo "Požadovaný článek neexistuje."; $pg=$dataRow->id; } else { if($mpID->id) { // dibi::test ("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 1, 1, 0); $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 1, 1, 0); if(count($dataRes)>0) { foreach($dataRes as $dataRow) { $dd=date("j", strtotime($dataRow->article_date)); $mm=date("n", strtotime($dataRow->article_date)); $yy=date("Y", strtotime($dataRow->article_date)); echo "
$dataRow->short_text
"; if($_SESSION["MAINPAGE"]=="babyklub") echo "id\" class=\"more\">více"; else echo "id\" class=\"more\">více
"; echo "

$dataRow->title
$dataRow->short_text
$dataRow->text
\n"; // vypis dokumentu $documentsPath="ke-stazeni/clanky/$mpID->id/$dataRow->id"; if(is_dir($documentsPath)) { $aFile=iterator_to_array(NFinder::findFiles('*')->in($documentsPath)); if(count($aFile)>0) { ksort($aFile); foreach ($aFile as $file) { // echo $file.""; $url=str_replace("\\","/",$file); $name=substr($file,strrpos($file,"/")+1); $name=str_replace("-"," ",$name); $ext=substr($file,strrpos($file,".")+1); echo "

$name\n"; } } } } else echo "Požadovaný článek neexistuje."; $pg=$dataRow->id; } else { if($mpID->id) { if($_SESSION["PAGE"]=="babyklub-vsehochut") { $label=32; $dataRes=dibi::query ("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, $label, 1, 0); } else { $label=2; $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i and article_date>=now() order by article_date", $mpID->id, $label, 1, 0); } if(count($dataRes)>0) { // archiv akci echo "Archiv akcí"; foreach($dataRes as $dataRow) { if($_SESSION["PAGE"]=="babyklub-vsehochut") { $dtm=""; } else { $dd=date("j", strtotime($dataRow->article_date)); $mm=date("n", strtotime($dataRow->article_date)); $yy=date("Y", strtotime($dataRow->article_date)); $dtm="
$dataRow->title
$dataRow->short_text
$dataRow->text
\n"; // vypis dokumentu $documentsPath="ke-stazeni/clanky/$mpID->id/$dataRow->id"; if(is_dir($documentsPath)) { $aFile=iterator_to_array(NFinder::findFiles('*')->in($documentsPath)); if(count($aFile)>0) { ksort($aFile); foreach ($aFile as $file) { // echo $file.""; $url=str_replace("\\","/",$file); $name=substr($file,strrpos($file,"/")+1); $name=str_replace("-"," ",$name); $ext=substr($file,strrpos($file,".")+1); echo "

$name\n"; } } } } else echo "Požadovaný článek neexistuje."; $pg=$dataRow->id; } else { if($mpID->id) { if($_SESSION["PAGE"]=="babyklub-vsehochut") { $label=32; $dataRes=dibi::query ("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, $label, 1, 0); } else { $label=2; $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, $label, 1, 0); } if(count($dataRes)>0) { foreach($dataRes as $dataRow) { if($_SESSION["PAGE"]=="babyklub-vsehochut") { $dtm=""; } else { $dd=date("j", strtotime($dataRow->article_date)); $mm=date("n", strtotime($dataRow->article_date)); $yy=date("Y", strtotime($dataRow->article_date)); $dtm="
$dataRow->title
$dataRow->short_text
$dataRow->text
\n"; // vypis dokumentu $documentsPath="ke-stazeni/clanky/$mpID->id/$dataRow->id"; if(is_dir($documentsPath)) { $aFile=iterator_to_array(NFinder::findFiles('*')->in($documentsPath)); if(count($aFile)>0) { ksort($aFile); foreach ($aFile as $file) { // echo $file.""; $url=str_replace("\\","/",$file); $name=substr($file,strrpos($file,"/")+1); $name=str_replace("-"," ",$name); $ext=substr($file,strrpos($file,".")+1); echo "

$name\n"; } } else echo "Stránka neobsahuje žádné dokumenty."; } else echo "Stránka neobsahuje žádné dokumenty."; } else echo "Požadovaný článek neexistuje."; } else { if($mpID->id) { // dibi::test ("select id, article_date, title, short_text from article where site_id=%i and label & %i order by article_date desc", $mpID->id, 2); $dataRes=dibi::query("select id, article_date, title, short_text from article where parent_id=%i and label_id & %i order by article_date desc", $mpID->id, 2); if(count($dataRes)>0) { foreach($dataRes as $dataRow) { $dd=date("j", strtotime($dataRow->article_date)); $mm=date("n", strtotime($dataRow->article_date)); echo " \n"; } } } else echo "Článek neexistuje"; } break; case "Xzs-dokumenty": case "Xms-dokumenty": case "Xdruzina-dokumenty": case "Xbabyklub-dokumenty": $documentsPath="ke-stazeni/dokumenty/$mpID->id/"; if(is_dir($documentsPath)) { $aFile=iterator_to_array(NFinder::findFiles('*')->in($documentsPath)); if(count($aFile)>0) { ksort($aFile); echo "
",$d); } else echo "Stránka neobsahuje žádné dokumenty."; } else echo "Stránka neobsahuje žádné dokumenty."; echo "
"; break; case "zs-dokumenty": case "ms-dokumenty": case "druzina-dokumenty": case "babyklub-dokumenty": // dibi::test("select * from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 4, 1, 0); $docRes=dibi::query("select * from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 4, 1, 0); if(count($docRes)>0) { $documentsPath="ke-stazeni/clanky/$mpID->id"; echo "

"; break; case "zs-jidelna": case "ms-jidelna": $jidelnaRes=dibi::query("select * from article where parent_id=%i and label_id & %i and state=%i and deletedby=%i order by article_date desc", $mpID->id, 16, 1, 0); if(count($jidelnaRes)>0) { $documentsPath="ke-stazeni/clanky/$mpID->id"; echo "


"; break; default: if($pageRow->perex) echo $pageRow->perex."
"; echo $pageRow->text; $pg=$pageRow->id; } //foto if(is_dir(__DIR__."/site-photo/".str_pad($pg, 4, "0", STR_PAD_LEFT))) { $dirs=iterator_to_array(NFinder::findFiles('*_sml.jpg')->in('site-photo/'.str_pad($pg, 4, "0", STR_PAD_LEFT))); if(count($dirs)>0) { echo "
"; echo "